package cn.ekuma.epos.datalogic;

import java.util.Date;

import cn.ekuma.epos.datalogic.job.I_DataLogicJob;

import com.openbravo.bean.crm.CustomerScoreDiary;
import com.openbravo.bean.crm.CustomerScoreOPEnum;
import com.openbravo.bean.crm.CustomerStoreValueCard;
import com.openbravo.bean.crm.CustomerStoreValueCardDiary;
import com.openbravo.bean.crm.StoreValueCardOPEnum;
import com.openbravo.bean.crm.voucher.VoucherDiary;
import com.openbravo.bean.crm.voucher.VoucherOPEnum;
import com.openbravo.data.basic.BasicException;

public interface I_CustomerDebtProcesser extends I_DataLogicJob {
	void updateCurDebt( double debt , Date date, String customerId) throws BasicException;
	void updateCurScore( double score , Date date, String customerId) throws BasicException;
	
	int customerScoreDiaryInsert(final CustomerScoreOPEnum opType,final CustomerScoreDiary diary)throws BasicException;
	
	int transferStoreValueCardValue(final String descId,final CustomerStoreValueCardDiary diary)throws BasicException;

	CustomerStoreValueCard findStoreValueCardByNum(String value) throws BasicException;
	
	int customerStoreValueCardDiaryInsert(final StoreValueCardOPEnum opType,final CustomerStoreValueCardDiary diary)throws BasicException;
	
	int voucherDiaryInsert(VoucherOPEnum opType, VoucherDiary diary)throws BasicException;
}
